package com.znsd.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * sku平台属性值关联表
 * </p>
 *
 * @author Liuyl
 * @since 2019-10-16
 */
@TableName("sku_attr_value")
public class SkuAttrValue extends Model<SkuAttrValue> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    /**
     * 属性id（冗余)
     */
    @TableField("attr_id")
    private Long attrId;
    /**
     * 属性值id
     */
    @TableField("value_id")
    private Long valueId;
    /**
     * skuid
     */
    @TableField("sku_id")
    private Long skuId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getAttrId() {
        return attrId;
    }

    public void setAttrId(Long attrId) {
        this.attrId = attrId;
    }

    public Long getValueId() {
        return valueId;
    }

    public void setValueId(Long valueId) {
        this.valueId = valueId;
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SkuAttrValue{" +
        "id=" + id +
        ", attrId=" + attrId +
        ", valueId=" + valueId +
        ", skuId=" + skuId +
        "}";
    }
}
